package org.ajie.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@RestController
@RequestMapping("test")
public class TestController {


    @GetMapping
    public Map<String,Object> test() {
        Map<String, Object> map = new HashMap<String,Object>();
        map.put("code", 201);
        map.put("message", "Hello World");
        map.put("data", "测试接口访问成功");
        return map;
    }
}
